import os
import shutil




os.system("python /data_process/combine_transform_anno.py")   #combine 04 08 data  and transfor anno to coco
print('combine 04 08 data and  transform anno to coco : finished')

os.system("python /data_process/temlate_align.py")
print("templated aligned :  finished")



os.system("python /data_process/weight__modify.py")
print("weight_modify :  finished")

os.system("CUDA_VISIBLE_DEVICES='0,1,2,3' /workspace/mmdetection/tools/dist_train.sh /my_config/cascad_S50.py 4 --work-dir /work_dir --no-validate")
print("training finished")

trained_weight = '/work_dir/latest.pth'
target = '/dcn_r101/'
shutil.copy(trained_weight, target)
